<?php
defined('BY_JYA') or exit('error');
/*
	挪车记录
*/
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
cfc('core')->checklogin();
if($_RQ['op']=='main'){
	$list=pdo_getall('jy_move_car_move_log',array('mid'=>$_SESSION['uid']),array(),'','id desc');
	if($list){
		foreach($list as &$item){
			$card=$this->get('cards',array('id'=>$item['card_id']));
			$item['card_number']=$this->card_number($card['number']);
			$car_user=$this->get('member',array('mid'=>$card['mid']));
			$item['nickname']=$car_user['nickname'];
			$item['avatar']=$car_user['avatar'];
		}
	}
	$return['list']=$list;
	exi($return);
}